package com.explorex.infra.puma.gateway.netty.common;

import lombok.Data;

/**
 * @author: JacceYang
 * @createTime: 2022/08/22 11:44
 * @description:
 */
@Data
public class WaitingAckMessage {
    /**
     * websocket message
     */
    private Object msg;

    /**
     * seq for compare
     */
    private long seq;

    /**
     * 重试次数, 不对外公开的字段,不要构造函数传
     */
    protected byte tryTimes;

    /**
     * 入队时间
     */
    private long enQueueTime;

    private volatile int status;

    private int bizId;

    public WaitingAckMessage(int bizId,Object msg, long seq,long enQueueTime) {
        this.bizId=bizId;
        this.msg = msg;
        this.seq = seq;
        this.enQueueTime = enQueueTime;
    }
}
